package com.agileboot.domain.question.db;

import com.agileboot.common.core.page.PageDTO;
import com.agileboot.domain.question.form.QuestionForm;
import com.agileboot.domain.question.query.QuestionQuery;
import com.agileboot.domain.question.vo.QuestionVo;
import com.baomidou.mybatisplus.extension.service.IService;


import java.util.List;

/**
 * @author lx
 * @implNote 2022/2/26
 */
public interface QuestionService extends IService<Question> {

    PageDTO<Question> getQuestion(QuestionQuery query);

    QuestionVo getQuestionVoById(Integer id);

    PageDTO<QuestionVo> getQuestionVoByIds(List<Integer> ids);

    void deleteQuestionByIds(String questionIds);

    void addQuestion(QuestionForm questionForm);

    void updateQuestion(Integer id,QuestionForm questionForm);

}
